const Router = require('koa-router')
const group = new Router()

// 创建一个群聊
group.post('/addGroup', require('./addGroup'))

//根据群id搜索群聊 
group.get('/searchGroup', require('./searchGroup'))

//申请加入
group.get('/applyGroup', require('./applyGroup'))

//根据自己的id,获取群聊
group.get('/getGroupList', require('./getGroupList'))

//获取群成员申请列表 别人申请我的群
group.get('/applyList', require('./applyList'))

//获取申请的群列表 我所申请的
group.get('/myApplyList', require('./myApplyList'))

//处理群成员申请
group.get('/agreeMember', require('./agreeMember'))

// 根据群聊id获取群聊详细信息
group.get('/getGroupDetail', require('./getGroupDetail'))


module.exports = group
